package cn.lanqiao.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * (Products)实体类
 *
 * @author david
 * @since 2024-04-09 18:57:38
 */
@Data
@Accessors(chain = true)
@Table(name = "products")
@ApiModel(value = "Products", description = "")
public class Products implements Serializable {
    private static final long serialVersionUID = -67223351340833263L;
    /**
    * 主键
    */
    @ApiModelProperty(value = "主键")
    @Id
    private Integer id;
    /**
    * 产品名称
    */
    @ApiModelProperty(value = "产品名称")
    private String proName;
    /**
    * 产品价格
    */
    @ApiModelProperty(value = "产品价格")
    private Double proPrice;
    /**
    * 产品图片
    */
    @ApiModelProperty(value = "产品图片")
    private String proImg;
    /**
    * 生产日期
    */
    @ApiModelProperty(value = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date proDate;

}
